﻿using System.Configuration;
using System.Web.Mvc;
using DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.CommonDelegate;

namespace DTTB.MV2.QUANLYNHANSUTIENLUONG.Controllers
{
    public class DownloadController : Controller
    {
        //public DownloadDelegate DownloadFile(string fileName, string path)
        public DownloadDelegate DownloadFile(string fileName, string path)
        {
            return new DownloadDelegate
            {
                FileName = fileName,
                Path = ConfigurationManager.AppSettings["CommonPathSegment"]  + path //Phần đường dẫn chung + phần đường dẫn riêng
            };
        }
    }
}
